Decode directly into a semver::Version
authorAlex Crichton <alex@alexcrichton.com>
Tue, 26 Aug 2014 15:45:33 +0000 (08:45 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 26 Aug 2014 15:47:02 +0000 (08:47 -0700)
commiteebbfa0286cf479a200f0f558aaa8472ea24cb2d
tree36a068d3c9c1820d4f0fdeefa68567db78f397b3
parentbd2fd92e9fa4836212388298d91bfb11a4a7533f
Decode directly into a semver::Version

This generates errors for malformed semver versions during the decoding process
rather than later in the convertion to a package id. This also cuts down on the
large number of derived traits to only what's necessary.

Closes #54
src/cargo/util/toml.rs
tests/test_cargo_compile.rs